package top.toptimus.dto.measure;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 量体值配置清单
 *
 * @author gaoyu
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MeasureDTO {
    private String id;
    private String parentId;
    private String code;
    private String ITEM_CD;
    private String ITEM_VALUE;
    private String ITEM_NAME_CN;
    private boolean isFIT_VALUE; // 客人净量体值
    private boolean isGarmentSize;  //    成衣尺寸
    private boolean isHalf; //  是否有1/2
    private int index;

    /**
     * 导入对象，测试用例或者excel导入使用
     *
     * @param code          编码
     * @param ITEM_CD       ITEM_CD
     * @param ITEM_VALUE    ITEM_VALUE
     * @param ITEM_NAME_CN  名称
     * @param isFIT_VALUE   是否显示客人净量体值
     * @param isGarmentSize 是否显示成衣尺寸
     * @param isHalf        是否二分之一
     * @param index         顺序
     */
    public MeasureDTO(
            String code,
            String ITEM_CD,
            String ITEM_VALUE,
            String ITEM_NAME_CN,
            boolean isFIT_VALUE,
            boolean isGarmentSize,
            boolean isHalf,
            int index
    ) {
        this.code = code;
        this.ITEM_CD = ITEM_CD;
        this.ITEM_VALUE = ITEM_VALUE;
        this.ITEM_NAME_CN = ITEM_NAME_CN;
        this.isFIT_VALUE = isFIT_VALUE;
        this.isGarmentSize = isGarmentSize;
        this.isHalf = isHalf;
        this.index = index;
    }
}
